<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <title>用户中心</title>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <link rel="stylesheet" href="/images/style.css" type="text/css" media="all" />
    </head>
    <script type="text/javascript">
        
        //自动调整iframe框架的方法
        
        function iframeAuto(){
        
            try {
            
                if (window != parent) {
                
                    //定位需要调整的frame框架（在父级窗口中查找）
                    
                    var a = parent.document.getElementsByTagName("IFRAME");
                    
                    for (var i = 0; i < a.length; i++) {
                    
                        if (a[i].contentWindow == window) {
                        
                            var h1 = 0, h2 = 0;
                            
                            a[i].parentNode.style.height = a[i].offsetHeight + "px";
                            
                            a[i].style.height = "10px"; //首先设置高度为10px,后面会修改
                            if (document.documentElement && document.documentElement.scrollHeight) {
                            
                                h1 = document.documentElement.scrollHeight;
                                
                            }
                            
                            if (document.body) 
                                h2 = document.body.scrollHeight;
                            
                            var h = Math.max(h1, h2); //取两者中的较大值
                            if (document.all) {
                                h += 4;
                            }
                            
                            if (window.opera) {
                                h += 1;
                            }
                            
                            //调整框架的大小
                            
                            a[i].style.height = a[i].parentNode.style.height = h + "px";
                            
                        }
                    }
                }
                
            } 
            
            catch (ex) {
            }
            
        }
        
        //事件绑定的方法，支持IE5以上版本
        
        if (window.attachEvent) {
        
            window.attachEvent("onload", iframeAuto);
            
        }
        
        else 
            if (window.addEventListener) {
            
                window.addEventListener('load', iframeAuto, false);
                
            }
        
        //-->
    </script>
    <body>
        <form action="/tmenu/dosub" method="post">
            <table border="0" cellspacing="0" cellpadding="0" class="msgtable">
                <thead>
                    <tr>
                        <th>
                            增加菜单:
                        </th>
                        <td>
                        </td>
                    </tr>
                </thead>
                <tbody>
                    <tr>
                        <th>
                            名称:
                        </th>
                        <td align="left">
                            <input type="text" name="fname"/>
                        </td>
                    </tr>
                    <tr>
                        <th>
                            地址：
                        </th>
                        <td align="left">
                            <input type="text" name="furl"/>
                        </td>
                    </tr>
                    <tr>
                        <th>
                            描述:
                        </th>
                        <td align="left">
                            <textarea cols="20" rows="3" name="fdesc"></textarea>
                        </td>
                    </tr>
                    <tr>
                        <th>
                            排序:
                        </th>
                        <td align="left">
                            <input type="text" name="forder" value="0"/>
                        </td>
                    </tr>
                    <tr>
                        <th>
                        </th>
                        <td align="left">
                            <input type="hidden" name="pid" value="<?php echo $pid;?>"/>
                            <button type="submit">
                                增加
                            </button>
                        </td>
                    </tr>
                </tbody>
            </table>
        </form>
    </body>
</html>
